package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.FormMapper;
import cn.uniqueinfo.dp.service.IFormService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.FormVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-23 10:54:35
 * @description: 业务表单基础配置
 */
@Service
public class FormServiceImpl extends BaseServiceImpl<FormVO> implements IFormService {
    private FormMapper mapper;

    public FormServiceImpl(FormMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<FormVO> findFormsByTableName(String tableName) {
        return this.mapper.findFormsByTableName(tableName);
    }

    @Override
    public FormVO findByFormName(String formName) {
        return this.mapper.findByFormName(formName);
    }
}
